added data for language tree, improved code