Added docstring for filter_output, and also properly test the 'additional' option in write_parameters and write_parameter_ranges and fix bug.