Phd Research. Reversible-Jump MCMC for spectral fitting. Hierarical fitting