fix bugs:enable openmp thread changable
fix source bugs