Stub builder

One problem - parameters of global functions are not handled