restructure the paralleliam code
Update the code by Go style
update code by Go style