Clean up some notes about unused variables.
Add the C reference code for the routines.