Adding file processing functionality and TextGrid generation for Issue #943