Add 'Content-Type: application/json' by default.
Comment improvements.
Added default log message.