Clean up Triangle class

Fix style issues and clean up code. Add additional example to test all three
triangle types.
does order matter here? is it obvious if it does?