finished cleaning and error handeling for notaryapi/hash.go
finished cleaning and error handeling for notaryapi/hash.go

jakeporter/FactomCode,DuncanAForbes/FactomCode,DuncanAForbes/FactomCode,FactomProject/FactomCode,jakeporter/FactomCode,FactomProject/FactomCode