add doc directory and add external spec.