Added comments for documentation to Dialog.cs