Implement writehash command
WIP
Use stderr instead of stdout for usage information
Add appendlog command
improve commandline tool
WIP: adding print function