Improved the LgUtils class. Major improvements done, comments remain to
be written.
I finally got that language switch working, but the algorithm is still
pretty weak.