fix Index link
hw6, hw8
refactoring code.
gitignore
code style.