Clean up the dialog creation for new planet.
Lots of code cleanup and commenting.