fix bugs and add compensation
add index.html