updated to documentation and fixes in logging