decrpyt added to optimized, some comments and other minor changes