code: added tests and code for hash function, with assertions. tried to fix indenting for github and npm view. replaced tabs with spaces. minor and patch version increment as new non-breaking API