Updated roam

* fixed small bug in split code
* fixed merge code
* added inputs 5-8 for use with merge testing.
* need to improve speed.