cleaning up arrays of units and estimates, adding function to add a child
stuff
added inputs, hierarchical calculation
converting to templates for HTML creation, adding save/revert UI