many bug fixes and improvements to u1encrypt and u1decrypt