Added a logout test and view and added to .gitignore and some docstrings