chloe adds find last occurance of variable
added last occur.  also fixed gitignore