Updated resilience matrix and weights after discussion with Katie, Liz, and Ben.  Ben added some notes to function.R file.