Converted object properties privacy

Changed objects private entities to protected for outside API
integration.
Updated code format.

Updated code format and structure for Java 7 Guidelines.