Added a line of documentation for onPersist showing how to use it.