Update documentation and move token getter from request