Fully implemented syncing- pending bugfixes