add illustration of regex

also fixed a few other minor issues