Added summarization script, fixed bug