Updates to average.spec.se.R and spec.utils.R