Added @private to private functions.
Added missing documentation for private functions.