add more APIs and extend example

Signed-off-by: Anand Avati <avati@redhat.com>