Changes to gitignore and added 0 check for dot products