(1) Update format dialog to contain default formats, (2) add code
comments