allow specifying lang
add documentation for lang option