Fix docstring.
Remove unnecessary functions, add logout link to index page.