minor change in comments.
refactored settings function.