added add_label() to library interface