Added an option to edit comment, fixed a bug about saving files that user does not want to save