Made changes to improve logging.
Made changes to testing and manual sync code.
Basic event handling is now in place.