Added es_tolower. Some bugfixes