update examples, improve printing debug