fixed some json parsing and logging issues

see #74
load configuration from file if available

see #74