Updated MessageFactory and its unittests
Removed Empty Deconstructors
Removed additional newline when writing messages to file.