add ecryption algorithm test
change assert to if()
documentation fixes