Changed min and max function defines
Added note contents