updated docs and changed logging