Update

Added ability to make uid optional.
Don't add empty autocomplete or uid values.
Arg is passed as attribute and element for compatibility