cleanup
number conversion to facilitate tests
better testcase. new error: shift reg elements need to be crossed over