added file io, parser writes gate_list and schedule in a file