Writes parameters related with boundaries_perp
If present, filename where params are written to, if not present, writes to screen