Fix .gitignore and clear memory on power on