Added UIDeviceHardware for check ofr sizes
Working formula
Fixed iphone 6 bug
removed UIDevice class