Reverted method of heat map file writing, added timer

Added replacement of str "SPC"