input parameters check aadded, data storage reconfigured and formula for output parameters updatet to the newest version