Added checkDeviceOrientation method.
Forgot to save before previous commit.
Added javadoc.