A complete CO survey of M31