Test and minor update to doco and add "occurrence" example