Fixed problem with algorithm and updated resistor values and totals in the user interface.