Better settings variable name.
Coding style and comment tidy-up.