Added support for Hash commands

Added support for hash commands.

I wouldn't mind if people review my code, I consider myself pretty junior and I am open for criticism and tips.