Minor tweaks to improve code and documentation clarity.