delete *~ files and add .gitignore file
add a test ignore file