Bug fixes, refactoring

Fix the crypter function jeelib bug