BaseEntity added
Basic superclasses for documents and codes added