added real and fun mode examples and callback variables.
updated version: