added XCode project files
changed to K&R indenting, added const where possible
merged changes
set up proper .gitignore for XCode