Use a separate file for mustache template

I also added comments to source code :-)