Moved CChat members to private, added necessary functions