Added the Summarize parameter properly

Now it returns data and can print a summary