added functions to parse arrays of strings into arrays of term lists