better default values for some entries, insert check for file operation, clean up comments