details of function ddpy.

updated codebook with details of function ddpy.