using autojit for some functions so they can take arrays
use local derivatives and shear addition
added ability to expand around different shear