Update .gitignore to exclude SourceGraph dir
Code refactoring after applying HLint suggestions