some change to Index.java, added .gitignore file