Merge pull request #2 from draganglumac/testable

Testable - making the test infrastructure and the first test for changed implementation of random_in_range
bug in memory management in crypto module
working on fixing decryption
small improvements
slight change to tests
updated