Added detach() method

Added detach() method and clarified the how the sync method works