Added documentation for the public methods.