added rotation and tilt controls
hooked up a 3d surface rendering mode, which needs much refinement