WiFlyHQ: A new library for the WiFly RN-XV

I am doing the tutorial :

And I have connected both the arduino and the wifly xbee but when i run the code in the serial port i get:

Connecting to Wifi...
setPrompt failed
Failed to enter command mode
Could not start Wifly module.

On the wifly xbee the D1 light is slowly flashing green where the D3 light is flashing red fast.

Please Help :confused: