I finish developing an algorithm for Diabecarp which automatically calculates the amount of insulin you need, depending on what you are eating, your current level of glucose, etc..

Brief explanation: Video
Application: diabecarp is free!