Add gitignore and add more debugging.