doctest all example codes