changed os version check and orientation checks
updated podspec