Comments added

Added comments to script. The name of the script is unclear, I'll probably change it!