added settings for packages
making settings optional
JSHint cleanup