Added -i flag, fixed flist overwrite bug, added Command class