I used the plastic piping last year (4 inch) to drain a very wet part of the garden. Simple enough - just dug a trench with a slight gradient to the outlet put drainage stone in first then pipe then covered pipe with stone.
To finish it used good top soil (only a couple of inches) and reseeded...