Chemical processes in paper and textile manufacturing