Check of length on T(m,n) for arguments
- Added comments for documentation