Write document for basic layout primitives
Start to write doc for advanced primitives