updated legends, added write to png file