DEBENTURE AND STOCK PURCHASE AGREEMENT