added transpose option and updated docs