Added chat logging to MongoDB and Markov Chaining

Added Markov Chaining functionality

added

Added Markov Chaining functionality