Cleanup to make build warning-free.
Fixed typos and inconsistencies in documentation.