Added a proper return type for sync.
Added comments to KansasComet stuff.

Also removed unused code and changes exposed API.