Added a whole bunch of functionality to communicator class; now writes to csv relevant information.