Refactored transposeData. Added tests to cover refactoring.
Merge pull request #1 from rklyne/master

Refactored transposeData. Added tests to cover refactoring.