Communication works for heartbeat and simple data packets
Started major refactor