added examples
added escape functions
fixed tests