hooked up settings w/ nsuserdefaults + util + common constants. refactored some code in util