added build script and index template file