AppCode settings
Fixed a couple of issues from AppCode static analysis
Reformat
Added appcode pref to gitignore