Added each with subtemplates case
Updated standalone build procedures