sh: Add some const keywords.
Add a comment giving an overview of the driver.  Remove leftover debugging.