fixed bad access
updated project settings
more code formatting + added escaping method
Merge pull request #1 from carlj/master

Fixed Bad Access