more work on download of workout
fix various minor issues discovered when testing more advanced programs