Moved program creation to material class. Also changed vertex
Removed error checking for now