dwell code error check and batchin reorder
Merge pull request #13 from nrferguson/master

dwell code error check and batchin reorder