Modified interface and added documentation for Replacer class.