add doxygen docummentation to Token class
refactofing of Token class