Reformat code and add a config file.