usb refactoring
refactor USB and add patient dialog
document