updated json configuration, refactored configuration handling

VEGAS BABY ;)