Added documentation for class and methods.