Added most of the ChatReader class