Theory of Magnetostatic Waves