Change configuration format

The configuration format specified in the README file and the code/tests
differed. The new format is a slight variation on the README format and
should be easier to extend if we add more configuration settings in the
future.

The ull request also includes a patch that adds some debug logging to show what files are being processed and the actions taken with their contents.

Closes #2