Add a secondary config xml, fix logging and writing of events (images still missing in json)