Polish some docs, add patterns.md

Change-Id: Idb02a46f8b75e85289812ed2f8a108f0b084666e