Oculus Rift 3D and head tracking working.
Improved code readability.