Added writing params to json
Fix to logger time/date printing