fix unbound keys again
add debug messages
now with verbosity levels and help option
minor import adjustment