add doc
flip demo improve