Writes to file, also is formatted
Woo, fixed merge