Added Flurry Analytics and some fixes after Swift version changed