added File input reader and some lines for statistics
working copy!