added support of different languages, added weighted random for the words. Fixed a couple of nullpointers