Fixed bugs in read_qasm and read_qasm_lines