Added mulitipleOutputs to buildValueBlock.
Added code and comments supporting omitting func fields.
Minor comment/style changes.
Removed debugging change from index.html.
Refactoring, improving abstraction and reducing duplication.