Move the bulk of trueview code into its own file. Fixes #114