Fixed typos and compilation errors in the token module.