re-worked some hash-check code
Merge pull request #144 from da2ce7/master

Hash Check Code Work