Better comments, better test for wsdl validation, some code cleanup.