Fix bit assignment issues

1.) The wire assignment of input data was reversed with respect to output data.

2.) The first bit of first wire was included in the last bit of the second wire.
This error was propagated and compounded for each successive wire assignment.