added tests for reader and writer. added reading smtp data