Configurable log levels, tweaked logging

Resolves #5
Fix whitespace