updated analysis script for all time periods, updated creating summary files