Improved examples and optimized lightning class