A high resolution HI survey of M31