Added docstring to triangles.py