message reader and file writer
it is possible to load messages into the object