Added the sha1 function, added some comments