Debugged lmT. Succesful build on Ubuntu 12.04
Debug LmT function. Add test.