adding comments to script for programming assignment 2