added doce generation, e2e test example