added logout function
Merge pull request #28 from vatseek/test

added logout function