Cleanup of figuring out what a token is.
Made it warn when function params are not used.