Fixes to gennlm script. New usage, supports outputfolder.