update hello example to new apis
remove gallery example
update directory example to new apis