added file input for netlist parsing