created CalcEngine
checks for empty gui values. fixes #6