Added ability to conveniently check device orientation and get a string result.