added programmatic legend, testing variable
added cape file