many changes

I think now the code generates the init methods correctly and also the
prologue and epilogue of methods