improved debugging, command line args, logging examples