Fix segmentation fault at deleteRandomEvent
Fix typo in R function
Add plotRateThroughTime function as well as transparentColor function