add get_file_list(dir)
get_file_list returns only text files
add calc_file_stats(filename)
fix readline and split in calc_file_stats