add document

spec and coding