fixed some things in LMEngine
Merge branch 'master' of https://github.com/medav/RDFT-Project.git