Code formatting, clean-up and refactoring

- Reformatted all source files to match Objective-C conventions.
- Eliminated unused code.
- Corrected ambiguous variable names.
- Removed commented code sections.
- Updated project settings to enable static analysis
- Updated project settings to limit build to current architecture for Debug configurations.

Signed-off-by: Christopher Morse <dignanmorse@gmail.com>