Adds license and copyrights, trims unnecessary parts from headless template