Separated comms into separate file. Added ports to config.