Structure and dynamics of Messier 3