Added more info to .gitignore
Added recursive function to fulfill requirements