update for dp 0.5.0 & add docs