legend added and .gitignore updated