added notes, fiddled with the markup. Greatly reduced the runtime cost of the catalog_steps method.