Inner Heatmap refactored and documented