Fixed typo
Removed remnants of hardcoded passswords.
Fixed repeated instantiation of message object
Fixed encoding problem: UTF-8 not specified and resulted in random characters being incorrectly saved
Removed extraneous and old commented code