changed docs to markdown, allowed for logger to be passed through