fix dependencies
better SHA algorithm
change regexps to use proper end of string matching