remove debug output. add missing include
fix some bugs. start cleanup of error output. add crypto_hash. add test for crypto_file.