fix bugs for formula MorrowAndLowke
adjust to run matlab simulation