Added function to CLI, cleaned up & fixed bugs

Bugfix: Fixed issue where you could not hash from STDIN