Fix an md5 problem and add documentation/cleanup

MD5 code taken from http://stackoverflow.com/questions/2018550/how-do-i-create-an-md5-hash-of-a-string-in-cocoa