moved chatbot control and initialization to chatbot.py in the actions folder. Added some comments.