Update .gitignore and add test program