updated dfu process
fixed mem leaks and updated messages