script for creating minute labels and example script for calculating minute averages