Computerized chemical injection systems