Added Trait domain class. corrected layout structure and added dynamic heatmap functionality.