Some minor changes

* minor doc fixes
* autoload cookie
* handle kill buffer