Update the patterns documentation to make it more like a tutorial