Added port (I/O) object. Added a getPosition function to the node object.