Added functions to work with files and dirs; wrote docs about usage