improving relation mapping; adding automatically created explain doc