Use JSON config file instead of individual parameters. Fixes #16.