Add the main code logical, and the related project architecture. Change-Id: I3709a650c1aadc2ef809cf489145e87c55e24216