Added check to see if tq_axis is a scalar
Changed status parsing code to use textscan instead of scanf and added
status checking function
Removed tlen as an output argument