+ Made the hash to be optional. If not passed, a random hash is generate...

...d. Fixes #2