add compare data method and gitignore file