Fixed errors and added .gitignore