Reviewed all code in controller.py and added comments. I think that the file is ready for testing.
listener.py should be ready to test
Ready for first test on AWS servers. Still need to add a check for message received confirmation message in controller.py