update comments, implemented getTranspose() method