Commented out the encode call to fix #1917
Minor improvements for debugging
Cosmetic
Adding doc to help me debug in the future