added spectralSlope and a mean of array function

nothing is tested though as nothing works on my computer