Add document.
Cleaning up export list and remove unused definitions.