Add some documentation here and there and get rid of a few useless lines