fix some bugs found while writing docs
added logrotate file