Switched to new swift syntax
Fixed all warnings
Merge pull request #1 from DZozulya/master

Compatible with xCode 6.0.1 release version