index.js now generates templates directory and _ directory