added examples and debug.