Some major cleaning with tests.
Progress on optimizing surface reconstruction based on average position paper [Akinci 2012].