Code clean up, output file sanitization for IPv6 addresses