Remove debug ouput and fix some documentation