Added output module

Upgraded the text import function for txt files. Added output module and
tests