added json config. Closed #5