Changes logger to __name__.
Clean ups; PEP8.
Bumps version to 1.2.