bug fixes for inverse

still need to fix det; added basic framework for termsPanel