stage 0.0 - basic initialization. needs to work on 3d trigonometry.