added documentation for pattern, checkpattern
added documentation for a possible workflow