added CSG tree, scene loader.
Minor code refractorings.