added more config options, nbgen now works on a dir