Fix wrong lcm example
Correctly order record fields
Stop reversing formal parameters.