add some comments and reformat sha1