Validate keys parameter

Ensure that keys is a hash
Merge pull request #35 from ghoneycutt/validate_keys_hash

Validate keys parameter