improve logout handler, tidy up documentation and deps