move logic whether to create a new Document into the ScoreWizardDialog.

It is cleaner than to rely on setting an instance attribute from outside
add some credits