Write file(s) out

Writes text files