Added physics module and callbacks;
Added option for static calls in stub generator and fixes some minor issues;