document spec