A Kinematic Approach to the Theory of Nuclear Magnetic Resonance and Relaxation in Liquids and Solids with Appolications