Implement ability to generate default config.json with optflag. Closes #3.