modified comments
modified spacing/formatting around foreach