added DatasetBuilder class and basic loading routines