As per the Open Source Initiative, I am disclosing the source of this mod onto GitHub.
I think I have left enough documentation on the source. So I guess for the code-understanding part, you could DIY.
X Rebirth Mod: Responsible Managers; Managers diligently report profits.