Added documentation to class definition and examples