add Programmatically detect which iOS version is device running on, update readme