'Herd' is the usual Scottish word for shepherd. I think he lived and worked at Shotton, but as it is not much more than half a mile from the border and from the nearest farm on the Scottish side, Yetholm Mains, the church in Kirk Yetholm is by far the nearest, compared with about 7 miles to Kirknewton