Refactored language changing into a separate function.
Further statistics work and implemented a Walk() function to the trie package.
Per-language stats now show up correctly.