Add formatter config

Fixes issue raised in #10.
Can you explain this line (in a comment)? I'm not familiar enough with sed to exactly understand what this is doing.