Fixes to changes in Swift and added gitignore.