Adding detach method.

Mirroring the attachRole, should have detach as well.
Merge pull request #6 from andrew13/patch-1

Adding detach method.