changed index.html, fixed misc bugs