changed to keylogger to class. moved logging behavior to virtual function. moved startup code to start_capture method.