Created a 'Detectors' class for writing out field values at particular spatial locations.