Fix support for indexed relations, add docs, markdown, iamge types to relations mapping