Started work on N-dimensional arrays and rewrote WriteStr code