Add documentation for dripl and some minor clean up