cleaned up HashBuild and added tests
Merge pull request #43 from timbokopter/feature/cleanup_HashBuild

cleaned up HashBuild and added tests