Fix internals problem. Add gitignore