renamed index.html, added the ability to specify directory