Tests for siging out written and passed. Also refactored code and started the process of following Rails naming convention of MVC.