made destructors virrtual, fixed typo in data generator