minor code review fixes, and adding KPI

updated pull request to include KPI sensors as part of example apps