Wrote some pseudocode for read.TextGrid.