Various improvements. Fixed orientation in portrait mode.