Format without command line
Added errors, commands, saveAfterFormatting, and cleaned up
Works in inactive editors now.