Able to set template to element. Clean up. Bump v0.3.1