AveSp changes

Changed the way SPcurA and SPcurB are calculated.
Typo fix