Added dump function

Added dump function and .gitignore file