processOnDemand renamed to memorySafe
Updated documentation reference in comments headers