fixed some buggy stuff, added parameters to set the translate, rotate and scale of the object to be added