included LMAX and cleaned up the other code parts