Clean code to follow reek style guide
Refactor response error handling
Add custom logger support