Added capability to build for multiple documents. Contains breaking changes.