slicing up the template, adding includes and setting directory structure