added some structure, added static variables for scale and ground pos, added a lot of stuff