Fixed the file parsing pub, all parsing seems to work fine now.

Now need to fix argument parsing, then part 1 will be done.