Merge pull request #24 from jerrywell/master

update parallel test
fine tune.
add parallel middle layer.
bug fix.