Modify to use Logger

This could be modifiable to use logger rather than simple print() statements... or perhaps have logger as an option.

Pros: added compatibility with Python standard packages (or at least ubiquitous packages).

Cons: more complicated.