added escape sequence escaping to doc generating script, updated docs