restored get_language_id method in languages class
fixed minor bugs