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

...de cleanup