Lectures in Magnetohydrodynamics: With an Appendix on Extended MHD