cleans up Print lines and other unnecessary things