added creation of datadir to some examples that needed it