Refactor slopetriangle element creator function

This resolves #44 for elements/slopetriangle