SIXTH AMENDMENT TO NOTE AND WARRANT PURCHASE AGREEMENT