+ Made the hash to be optional. If not passed, a random hash is generated. Fixes #2