added table class to store relations between docs