add gitignore file and clean up core dumps in make