Added generateFeedPreview() to get feeds as a string instead of directly echoing to stdout