Added .gitignore, fixed syntax errors, checked variable, argument, codVec, and domVec scopes