Split up write_output_decs into write_output_decs, and write_input_decs. Whoops! Looks a fair bit nicer now.

Changed the write_facsimile_code function to accomodate these changes.