small fixes, typos.
implemented curvature eval using numexpr but no speed increase measured.