Updated comments

Updates comments for most of the library. SyncCollection still needs some tidying.