Added functions find_min and find_max
Minor syntax changes