Cleanup
Basic support for xml-configuration
Add defaults for some parameter values.
Class-ify the lot.
Add example configuration file.
Fixes and support for looking for missing files.