added basic synch functionality

very jerryrigged code at the moment. Need to improve data parsing and
storing functionality.