minorrefactoring
fixed texturing bug, refactored texture to cpp
fixed some serious bugs in texturing