All functions for ports are now working as expected.  Need fine tuning on some of the switch functions and this item can be marked as complete. Need to try more scenarios to generate errors but I think i've caught them all at this point. #191