Some work towards getting multiplication working.
Added a free function and MAX macro.