added ssum function and modified pushover.m to inlcude error catching