Removed attributes from document class; added ir annotation field for things like bow vectors.