Update class.php

Updated whois function (improved formatting)