Add spec
Add logger metods and delete json parse