Added comments to edit dialog and all methods created by me in the main window.