added Settings object, and updated example file