Updated spec document and API (simplified formatting).

Updated spec document and API (simplified formatting).