fix formatting and update examples