Cleaned up a little and documented the RunDlg call.