simplified the code generator - removed the generic bit
first attempt at generating Blockly from JSON