F/OSS:  Introduce logic for some constraints.

 - Updating and cleanup of Singleton pattern.
 - Introduced constrains enforcement for field visiblity and empty
   field for structs.