Adds winston logging
Fixes broken json