WIP: Refactor constants (comments welcome)

I think that will be good to save the xpd calibration data in a different file