Remove lines attempting to release memory of local variables, update
.gitignore file