Adding some comments to the file to give a better idea of what I'm trying to do in each block of code.