optimize example build and update readme with usage