Modified for object orientation. Added portScan class and moved port scanning functions to portScan methods.