Added endpoint options (flat, triangle and round)
Cleaned the "end-point" code.
Updated the demo to include all the built-in end-points.