Fix some BUG and add regression equation