move legend above list of needed files

This is an enhancement request and an attempt to implement it in one. Baby steps, unfortunately without compiling and testing.  Looked easy enough ;-) Please let me know if it's incorrectly done. Since no preference was expressed in #476, I suggest moving the legend to the top, so it will not disappear below a long list of needed files.