Moved create_netlist and create_layout to the pgate class from which everything is derived. Modified all pgates to have consistent debug output and order of init function.