fixed slice calls
added .gitignore