A working version of write.TextGrid is finished.  Still rough, but functional.