Improved netlist parser