Added IRifier, and fixed bugs in fromEventBased.
Fixed module issues.