Re-named function "in_set" to "escape_value".
Created global variable ITERATIONS to replace hard coded value and updated escape_values to use it.
Modified doc strings and comments.