* cherrypicking file changes just for updates * removed unused heat foo * avoid defining own min/max * add license * formatting