added docstrings and tab_transpose