Working on file I/O, still seg faults when loading old commands from file