Added ability to dump netlist, constant folding optimization.
Fixed optimization passes.
Forgot to pull before working on the optimization.