added NSCoding to math objects
added textureFromObject: to SPViewController