deleted unnwcessary action of summing files content. Also created empty dictionary type variable stat to hold information about about files statistics