simplified return statement
fixed comments
simplified get_min & get_max