added flow diagrams for wiki/documentation