add logout function
Merge pull request #38 from wesleyk/logout

add logout function