Add Xcode project
Various modifications
Modify for use of string and stringstream