Added a version to the dialog, simplified some functions and added some TODO's to further work.