added documentation to the Chatbot class
made a while loop instead of an if statement