Key entry parameter on hat block, improvments to code

Label is based on block, instead of spec. Takes parameters on blocks.
After parameters will work on catagory color, and then C-blocks.