Add logging with verbosity control (closes #22).