Thanks for the help Stefan,
I know the second part sounds confusing but is actually not that confusing.
The xowiki's index.vuh does this:
::xowiki::Package initialize -ad_doc {
} ...
and I changed it to do this:
::myapp::Package initialize -ad_doc {
} ...
So now when I call a xowiki/?edit-new=1 it actually initializes myapp and it works, but I can't leave the index.vuh file like this.
My question is how could I set a file to work the way I want, should I use a .vuh. I tried using a tcl file with that code but when it founds the part of the code:
::myapp::Package initialize -ad_doc {
} ...
it ignores the file.