Updated .gitignore
Added comments and flags to code of interest.