added pcre_subst function
added description of pcre_subst
fixed test010
removed duplicated code
travis: minor enhancements