Added function triangular-to-full and some docstrings