Remove "Unless ... otherwise" that are not needed. Fixes #39.
Move "current orientation lock" definition above the two locking
related algorithms. Also removed "should". Fixes #26.
Improve the "active orientation lock" definition. Fixes #25.
Merge pull request #57 from mounirlamouri/various_fixes

Various fixes (for #25, #39 and #26)