Hi,
Here is a patch for $SUBJECT. Changes are:
* Reorder struct definitions for readability.
* Reorder arguments for some functions for consistency.
* Reorder the conditions in an if-else block for efficiency/readability.
* Rename a variable to match other places.
* Fix typos in comments.
* Add/Tweak some comments/docs for clarity.
Best regards,
Etsuro Fujita