added mustache templating cabability and converted to mustache