added more comments to program