Update gitignore and readme, fix duplication bug