Fix logging, update docs