added default for variables, added html comment in index.html