No more segfault on freeing variables. Gitignore added