Automatically add missing .end to netlist
Fixed circ order of operations

Fixed error due to encoding of netlist before looking for .end