changed the format of config files to allow for more flexible output
adding counting stuff