added textfile struct