Study and improvement of dynamics of an Electron Beam Lithography Machine