added handling of representations and their md while ingesting and added retreival method