Added description to DetachVideo, reformatted the code.