Formatted code
Added a global static method for getting an object public properties