Create subfolder and change toc algorithm