Fixing a bug in file parsing when \r is present.
Fixed a bug in tree traversal when node with valid word has child nodes. Also added minimum word size.