Adding documentation, cleaning up some parts of the wx smach viewer