Added Xcode project, copyright and some fixes