refactor set and get methods
Merge pull request #15 from sotoseattle/hash

refactor set and get methods