modified pollutantmean.R - removed code validation points, added for and if control loops, removed additional un-necessary steps