large number of typo and bug fixes, the design now compiles for simulation