added to_str
fixed scale_value
gradient_test fixed