Added enum for block names and correct painting of inverted outputs.
Added simple connection layout algorithm.
Add dialog to add new blocks.
Minor fix.