adding example app
simplifying public api