refactor

make filenames module variables
sort cnofig keys when making directory name for reproduceability