Fix environment problem on print.s5
Fix summarization algorithm (was incorrectly building the ECG)