fixed memory leak
made command arguments optional
added `remove_dir` and `make_dir` operations