recognizes iPod, returns device type, refactored

tested up to iOS 8.0.x and Android 4.4.x