added new EC code. Combined PCAL and EC reconstruction