I've been trying to write a script for comets, but cannot use its member functions because the Comet Class is not supported by the scripting language. How would I go about adding the Comet Class? 

I've tried writing the functions meant for Comet class into SolarSystem just to see how it would work, but that's bad style, and also I don't think it can be done... at least not cleanly.