Added some testing procedures and refactored emailFileReading into a new
class BufferedEmailFileReader.