Implementation and testing of the first prompt search for gravitational wave transients with electromagnetic counterparts