Simplified relatedmaterial template and added internal formatting.