added config.pz
config + ressourcenpriorität
refactoring to modules
fixed some errors