Added new checkboxes field and added some improvements to outputting files.