Cleaned up code
Added checkers to chatbot