documented subtemplate, adapted build files