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