Add pre formatting, CLI help, wfile.close()