changed structure and added VCDdump