Use logger instead of `plog`

This replaces plog. In main() you see an example of how you
could use log-levels and the verbosity-flag from commandline.