added nidaq class and contour reshaping