expand replacement string just before substitution, after vars set
disabled unused functions
fixed mistake in readme
more, more tests!