fixed mvel and index function
added code for old style LRMI, and added tests for it
removed contraint