Global line numbering bug fixed. Functions for token type identification, token list flattening, math operations using awk improved