Fixed typos in header comments.
Fixed unused local variable warning.
Fixed names of four hint environment variables.
Removed empty statements.