Methods in the Quantum Theory of Magnetism