Encryption

revised and added java docs and cleaned commented areas. split test folder from main source.