Added option for 2nd order James approximation. Tweaked to allow alpha to be a vector.