added cmdline arg. now working on saving file