Fixed the indent sizes for output declarations (previously only fixed them for the inputs, whoops.

Added a function to write phases.

Added a function to write processes.

Updated the write_facsimile_code function to create the update function and everything. This should sort of work now!