Create MASTER_v1

ALTERED FROM HEATCONTROL to include a library and separate functions.