fixed orientation issues when device is laying flat on a surface #19, code cleanup
Merge pull request #27 from andreagiavatto/Issue#19

fixed orientation issues when device is laying flat on a surface #19, co...