Added documentation and set private scope for instance variables.
Added documentation.