added period averages, Resilience1 and Resilience2 calculations
added calculation of synthetic Resilience1 and Resilience2