added logging functionality. next up is verbosity levels on the command
line.