WIP
Fix disconnect, add flash
docs for flash