Fixing logger style.
Tweak import and debug level.
Adding headers, fixing bugs.