Update gitignore.
Add xcodeproj, xcworkspace, and tests.
Add tests.