update examples, fix make ecg bug, add reference