Reordered functions in heatmap so that exposed functionality is on top. Fixed typos