updated Xcode project settings
fixed project warnings
fixed some warnings
fixed some memory warnings from static analyzer