Added documentation for classes and triangle structure.