added Token class
using PositionToken for extract
improves docstrings