Dataset class.

Fixes in the class constructor.