improve doc
change a flag to set an element type and add description