Move Main into it's own class. Refactor formatter to use a #mute block