added token_expire() and documentation on public methods