updated JS for efficiency, tweaked layout, swapped radios for checkboxes where appropriate,set pre-selected radios where appropriate.