Added class and method documentation.