improve walley.wy.. add walley_calculation function.. fix some bugs