More secure chunk decode adjustment and minor fixes.
Minor documentation fixes.
Optimize a bit goto line.