included LMAX and cleaned up the other code parts
included LMAX and cleaned up the other code parts