adding the io package

Added new package io and new classes Function, Calc and FileCalc.