Added read_textfile, changed parse