A study of the dynamics of the plasma filled rod pinch