Edited math formulas and reformmated logs