Added javadoc to triangle representations