removing unused char array
Revert "removing unused char array"

This reverts commit 7488e15eff4549461e7c2ff3e6cb92b87c6d6bbc.
divide by zero for results
Revert "divide by zero for results"

This reverts commit 52013caa2beaf96c3e5b34352a8e8bc6da0f9e06.
added unit testing plus a lot of bug fixes. The test data is currently in global memory