Clean up Triangle class

Fix style issues and clean up code. Add additional example to test all three
triangle types.