Dynamics of the Interplanetary Gas and Magnetic Fields