Added an option parser, and fixed relative par/tim-file when loading files