Update documentation.
Fix replaceAliases duplication bug