Added more sum functions to lib
Small changes to latency CDF printing functionality