Cleaning up and documentation.
Tests: Fixed wrong method call in undo tests setUp which does not exactly set up everything.