Adding documentation and fixing authentication status for tokens