Bug fixes. Comunication over different php files depurated