Overhaul of frontrunner script. Exch rewritten and algebraic types added for all function results and input. Now strongly typed