Fixed some issues in storing langauges. Minor bugs.