class to map points and add details