Amendment No. 6 to Note and Warrant Purchase Agreement Amendment No. 2 to REGISTRATION RIGHTS AGREEMENT