Adding docstrings and making sign out work.