added diagram for wiki
added demo patterns dir and a simple pattern