added comments, and enabled logger override