And to log out, go to one of your posts, click on your name above that post, and you will be directed to your profile. Then you will need to go to the top right where your name appears there. Click your name and you will go to a new screen. On that new screen there is a log-out option there.
Quite simple really.