fix documentation issues
fix debug logging