Merge pull request #12 from anu713/master

check for valid hash added
fixes