added iterating over matricies + .gitignore