Code tidy up and function docs
Ensure whois sockets are closed.
Removed legacy code as per #27
Reduced duplicated code
Removed unused imports and variables
Merge pull request #28 from neonbunny/master

Remove v1 interface as per issue #27 plus misc code tidy up