corrections in tables and penalty functions + c-o-m trigonometric calculation