Neatened up legends. Working through file IO.