added ability to transpose files in place