updated calls to attach and detach in sendmesssagedialog; updated README