Cleaned up structure, implemented relative filepaths for /O flag.