Various documentation upgrades and a fix to the predefined patterns.