added better comments to the script