Added argument parsing and file globbing