add debug logging
update documentation typo