lama khemsar , the head of the monastery , had taught painter the purposes of the hundreds of herbs : for purification , to foster divine energies , to dispel disruptive thoughts , even to treat asthma and the common cold .