change gitignore and fix data structure