Adding sync code and base tests
Removing errant debugging steps
Merge pull request #78 from geedew/master

Adding in the sync capability. closes #57 closes #53