Update Whois.php

Add domain syntax check and move domain parsing to constructor. 
Get acces to private field. Add some comments.