Touchups in different places.

* Cleanup/add some docstrings
* Make some parts clearer/complete in the documentation
* Add `source` as an attribute in the XML files
* Add option to specify a different config file in the `run_pipeline()` function.