Fixed some defects around landscape orientation and code cleanup
misc code cleanup
Commented and refactored some stuff