It's a bit outdated, really, but I used it as proof of concept on which Orbiter Galaxy is based. Well, not that anything of the original code has survived, but I still owe this add-on the inspiration. You can find Orbiter Galaxy if you follow the link in my signature. It isn't exactly simple to use either, but has plenty documentation.