Fixed classes and improved documentation.