Added hierarchy to two examples.
Fixed bug in handling of registers in printing .dot schematic.