actually safe messages that have been processed
dont clean up and process every pulse
some other improvements
small typo fix
have a resend time array instead of a fixed formula