added file capabliities to legends and added race legend