Extracted template into separate module
Updated README with detailed example