More well organized and well commented version.

Only thing that I still need to work on is making sure that the bot does not comment again if it is ran again on the same submission.