update example to tapping button
removing unnecessary header file and small formatting changes in log