Moved the majority of the slicing code to the Model3D class, clearing up space in the script. Also renamed some variables in the main script to suit the conventions used in the Model3D class etc.