Digest tested. (with debug messages)
removed debug messages & go fmt