Various changes, implementation of encryptClass, create of preference