Add functions for z_dipole and r_dipole functions.
complete example script.
Merge branch 'feature/all_dipole_types' into develop