update hw1 and gitignore
refactor code for hw1
fix typos in hw1
finalize hw 1