Generalized the processing of the configuration script
Added a convenience method
Added some unit tests
Test and fixed parsing 'down'
Refactored a bit to clean up code: splitted out key functionality into separate methods