added has_many/belongs_to relationships to documents/annotations