proper throw
Fix space
large performance improvement in trajectory-based parameter conversion (3x faster in my test)

use matrix division instead of computing inverse matrix explicitly