Fix formats being mismatched.
Add option to write everything to file.
Removed \n from a line and split it in two.