more work

added some code to apply textures and basic variables for a graphics
project, need to implement the importation of M3D mesh files