Add additional function templates

Add remove and replace function templates.
Rename “stack” function to “create” for less ambiguity.