clean out extraneous comments and traces