Added function template
Updated README