Darlington won for the first time in four matches as they saw off Hereford United  thanks to a Matty Cornish brace.