Text this: Singularity theory and an introduction to catastrophe theory