added some comments, cleared index.html static mainmethod