removed useless prints and fixed utf8 text file reading