Updated error messages and fixed Xcode project
Added multi-threading support