Fixed a bug in the new save algorithm
New lines now work and added some control sequence macros (which are probably wrong)