add generate_config as separate function
Merge branch 'master' of github.com:edina/fieldtrip-open