Added updated logging logic from monitor, to create errlog file if debug >= 2
Updating logging
Changed logging levels, commented out logging that was used during initial development