Validate hash arguments
Merge pull request #23 from byroot/validates-arguments

Validates arguments