read files from directory using GLib
added commands and options
args and commands