added mwas heat map code to lib