Transpose Command

I thought I'd take a crack at issue #47, and implement the transpose command. Feedback welcome, obviously.

Thanks!