Control to range for diabetes: functionality and modular architecture",