Format on save

This closes #2 

It's potentially breaking #10 :smile: 

@leobalter do you happen to have some time to check this PR on Mac? Would be amazing.