Documentation clean up and the start of fixing the unit tests.