updated README breaking add_cpd into four different functions