adding documentation on using detach