minor comment cleanup, addition of angles var, double quotes, use of triangle_type instead of three functions for each type