fixed few more compiler warnings and changed the LTSF mapping structures (it now uses index instead of LTSF pointer).