Changed create_token_array to return the total byte-count.
Stack implemented.