add debug info.
auto calculation weight.
remove LBFGSB and minor changes.
minor changes.