doctested
v 0.2 packaged