Made the tokens array global for easier access so it doesn't get dumped from memory. The elements of the array
can now be printed.
Made the array length variable global too. This way it can be easily changed.