Use JSON.pretty_generate to format config

Closes #13.