API UX improvements and a new example