Software for medical devices