Some more documentation
Add some more tests for the crypto module