add batch mode to add_ambar_record
add bash completion for add_ambar_record