Fixed issue where member variables of the Token struct weren't allocated. Fixed issue where incorrect array index was causing the same token to be printed multiple times