new text writing code
corrected map insert.
fixed writer
new files