Fixes for XCode Beta 6 and first documentation comments
More fixes for latest changes in Swift and XCode, regression bugs fixed