Modified details in legend to include actual keys rather than codes so that it is more understandable for user.