Fix #62 device now have connect dialog and reconnect dialog, also added javadoc and disconnect callback