some code optimization and interactive example2.html added