Updated comments and changed from md5 to crypt for random string generation.