Comments for main.py

Comments for main.py MainHandler etc. Trying to squeeze in more commits.