Upgrade code

Closed Dorotino Matteo requested to merge dorotmat/phantomx_code:upgrade_code into master

Hi Gael,

since it was too complicated to adapt each branch to the master, I have just rebased thee master in a new branch and I have inserted all new functions.

Merge request reports