add gitignore and ignore class file