fixed newline, added basic overwrite saving