Added document apis.

Still need document apis for notices and other existing document
classes.