Construct/Factory refactored

Created constructors and factories for many structs. Most codes are 'objectified' now.

further refactoring ongoing.