I have reviewed the code and made minor changes to make sure it is easy
for me to run compare/merges with the other scripts without making
errors.
* Moved some functions around
* Reworded and removed various "stuff".
* Removed fn_ports function (I see why it was done however adds
complications for merging)
* Put back fn_serverquery (not used yet but there would be plans to get
it working in future)